<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景</title>
    <style>
        div {

            width: 300px;
            height: 300px;
            background-image: url(./张昶.jpg);
            background-repeat: repeat;
            background-position: left top;
            /* 背景是否滚动或者固定显示在页面上 固定fixed  滚动的效果展示scroll*/
            background-attachment: scroll;

            /* 背景颜色半透明的样式显示 */
            /* background: rgba(0, 0, 0, 0.3); */
        }
    </style>
</head>

<body>

    <div></div>

</body>

</html>